import { toast } from 'react-toastify'

const config = {
  position: 'top-center',
  autoClose: 2000
}
const Toast = {
  error (message) {
    toast.error(message, config)
  },
  success (message) {
    toast.success(message, config)
  },
  warn (message) {
    toast.warn(message, config)
  }
}

export default Toast
